#!/bin/bash

sum_func() {
	SUM=$[$1 + $2];
	echo $SUM;
	return $SUM;
}

read -p "请输入第一个数值：" n1;
read -p "请输入第二个数值：" n2;

sum_func $n1 $n2
echo "result=$?"


